normalize connections in GUI (#316)
authortsteven4 <tsteven4@users.noreply.github.com>
Thu, 7 Mar 2019 22:34:18 +0000 (15:34 -0700)
committerGitHub <noreply@github.com>
Thu, 7 Mar 2019 22:34:18 +0000 (15:34 -0700)
as suggested by clazy.

gui/gmapdlg.cc
gui/map.cc
gui/processwait.cc

index d3894841070615afaaff3d211941aa26f83e90cb..8db82dcf7638fff0aab6b361dc5a70cf4bf419b3 100644 (file)
@@ -205,14 +205,14 @@ GMapDialog::GMapDialog(QWidget* parent, const QString& gpxFileName, QPlainTextEd
   connect(mapWidget_, SIGNAL(waypointClicked(int)), this, SLOT(waypointClickedX(int)));
   connect(mapWidget_, SIGNAL(routeClicked(int)), this, SLOT(routeClickedX(int)));
   connect(mapWidget_, SIGNAL(trackClicked(int)), this, SLOT(trackClickedX(int)));
-  connect(ui_.treeView, SIGNAL(doubleClicked(const QModelIndex&)),
-          this, SLOT(treeDoubleClicked(const QModelIndex&)));
-  connect(ui_.treeView->selectionModel(), SIGNAL(selectionChanged(const QItemSelection&,  const QItemSelection&)),
-          this, SLOT(selectionChangedX(const QItemSelection&,  const QItemSelection&)));
+  connect(ui_.treeView, SIGNAL(doubleClicked(QModelIndex)),
+          this, SLOT(treeDoubleClicked(QModelIndex)));
+  connect(ui_.treeView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
+          this, SLOT(selectionChangedX(QItemSelection,QItemSelection)));
 
   ui_.treeView->setContextMenuPolicy(Qt::CustomContextMenu);
-  connect(ui_.treeView, SIGNAL(customContextMenuRequested(const QPoint&)),
-          this, SLOT(showContextMenu(const QPoint&)));
+  connect(ui_.treeView, SIGNAL(customContextMenuRequested(QPoint)),
+          this, SLOT(showContextMenu(QPoint)));
 
   connect(ui_.copyButton, SIGNAL(clicked()), this, SLOT(copyButtonClickedX()));
 
index 7dfe1272eb090a2d32987bcb1984a79ae6b6b81b..ee318d036921abe728b5d5191183d0bc374a01bc 100644 (file)
@@ -86,8 +86,8 @@ Map::Map(QWidget* parent,
   this->page()->setWebChannel(channel);
   // Note: A current limitation is that objects must be registered before any client is initialized.
   channel->registerObject(QStringLiteral("mclicker"), mclicker);
-  connect(mclicker, SIGNAL(markerClicked(int, int)), this, SLOT(markerClicked(int, int)));
-  connect(mclicker, SIGNAL(logTime(const QString&)), this, SLOT(logTime(const QString&)));
+  connect(mclicker, SIGNAL(markerClicked(int,int)), this, SLOT(markerClicked(int,int)));
+  connect(mclicker, SIGNAL(logTime(QString)), this, SLOT(logTime(QString)));
 #endif
 
   QString baseFile =  QApplication::applicationDirPath() + "/gmapbase.html";
@@ -177,8 +177,8 @@ void Map::showGpxData()
   // Historically this was done here in showGpxData.
   MarkerClicker* mclicker = new MarkerClicker(this);
   this->page()->mainFrame()->addToJavaScriptWindowObject("mclicker", mclicker);
-  connect(mclicker, SIGNAL(markerClicked(int, int)), this, SLOT(markerClicked(int, int)));
-  connect(mclicker, SIGNAL(logTime(const QString&)), this, SLOT(logTime(const QString&)));
+  connect(mclicker, SIGNAL(markerClicked(int,int)), this, SLOT(markerClicked(int,int)));
+  connect(mclicker, SIGNAL(logTime(QString)), this, SLOT(logTime(QString)));
 #endif
 
   this->logTime("Start defining JS string");
index 19b02708882bf0fde496440777b992dd45cf1b00..c489c429ac676306886a6b06015d105aa36a2288 100644 (file)
@@ -84,8 +84,8 @@ ProcessWaitDialog::ProcessWaitDialog(QWidget* parent, QProcess* process):
 
   connect(process, SIGNAL(error(QProcess::ProcessError)),
           this,    SLOT(errorX(QProcess::ProcessError)));
-  connect(process, SIGNAL(finished(int, QProcess::ExitStatus)),
-          this,    SLOT(finishedX(int, QProcess::ExitStatus)));
+  connect(process, SIGNAL(finished(int,QProcess::ExitStatus)),
+          this,    SLOT(finishedX(int,QProcess::ExitStatus)));
   connect(process, SIGNAL(readyReadStandardError()),
           this,    SLOT(readyReadStandardErrorX()));
   connect(process, SIGNAL(readyReadStandardOutput()),